﻿using SampleMessages;
using SimpleServiceBus.Bus.MessageManagement.MessageHandling;
using SimpleServiceBus.Bus.Pipeline;

namespace SampleMonitorClient
{
    public class TestPublicationMessageHandler : IMessageHandler<TestPublicationMessage>
    {
        public void Handle(TestPublicationMessage message, IMessageContext context)
        {
            MainForm.Current.Notify("Publication Received from " + context.MessageEnvelope.ReturnAddress + ":" + message.Message + " sent at " + message.EventTime);
        }
    }
}
